//
//  muselectview.m
//  gangquOASystem
//
//  Created by michael on 2018/8/2.
//  Copyright © 2018年 czd. All rights reserved.
//

#import "muselectview.h"

@implementation muselectview

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)awakeFromNib{
    self.autoresizingMask = UIViewAutoresizingNone;

}
+(instancetype)checkBoxFootView{



    return [[[NSBundle mainBundle] loadNibNamed:@"muselectview" owner:nil options:nil] lastObject];
}

- (IBAction)action1:(id)sender {
    UIButton * btn = (UIButton*)sender;
    btn.selected = !btn.selected;
if (btn.selected) {
        self.str1 = @"1";

}else{
self.str1 = @"0";

}
NSLog(@"%@",_str1);
}

- (IBAction)action2:(id)sender {
    UIButton * btn = (UIButton*)sender;
    btn.selected = !btn.selected;
if (btn.selected) {
        self.str2 = @"1";

}else{
self.str2 = @"0";

}
NSLog(@"%@",_str2);
}

- (IBAction)action3:(id)sender {
    UIButton * btn = (UIButton*)sender;
    btn.selected = !btn.selected;
if (btn.selected) {
        self.str3 = @"1";

}else{
self.str3 = @"0";

}
NSLog(@"%@",_str3);
}

- (IBAction)action4:(id)sender {

    UIButton * btn = (UIButton*)sender;
    btn.selected = !btn.selected;
if (btn.selected) {
        self.str4 = @"1";

}else{
self.str4 = @"0";

}
NSLog(@"%@",_str4);
}
@end
